// src/main/java/com/macro/mall/tiny/modules/pms/dto/ProductSkuResponse.java
package com.macro.mall.tiny.modules.pms.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Schema(description = "商品SKU详情响应")
public class ProductSkuResponse {

    @Schema(description = "商品主键id")
    private Integer skuId;

    @Schema(description = "商品编码")
    private String skuCode;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "商品主图")
    private String mainImg;

    @Schema(description = "划线价")
    private BigDecimal crossedPrice;

    @Schema(description = "价格")
    private BigDecimal price;

    @Schema(description = "排序，从小到大排序")
    private Integer sort;

    @Schema(description = "是否给用户展示：1-展示，4-不展示")
    private Integer isShowToUser;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;

    @Schema(description = "SKU属性值列表")
    private List<ProductSkuAttrValueParam> attrValueList;
}